package com.WISSC.mapper;

import com.WISSC.bean.Occupation;
import com.WISSC.bean.OccupationImage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 职业资格和图片关联表 Mapper 接口
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
public interface OccupationImageMapper extends BaseMapper<OccupationImage> {


    /**
     * @param qualifications
     * @return 资格证书的url
     */
    List<OccupationImage> getOccupationImageUrl(@Param("id") Long id , @Param("qualifications") Integer qualifications);

    OccupationImage getOccupationImage(@Param("idNo")String idNo);


    int remove(@Param("id") Long id);
}
